package ${servicePackageName}.qo.sys;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 
 * @author lizihao
 *
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel("新增或修改用户请求数据")
public class UserReq implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5039233626491513461L;
		@ApiModelProperty(value = "用户id,不为空则是新增")
		private String id;
		
		@NotBlank(message="账号不能为空")
	 	@ApiModelProperty(value = "账号", required = true)
	    private String userAccount;
		
		@NotBlank(message="用户姓名不能为空")
	    @ApiModelProperty(value = "用户姓名", required = true)
	    private String userName;
		
	    @ApiModelProperty(value = "账号密码", required = true)
	    private String userPassword;
		
	    @ApiModelProperty(value = "0-启用,1-禁用")
	    private Integer isEnable;
	    
	    @ApiModelProperty(value = "角色id")
	    private String[] roleId;
	    
	    @ApiModelProperty(value = "排序")
	    private Integer sortNum;
	    
	    @ApiModelProperty(value = "机构id逗号隔开")
	    private String departmentId;
}
